//
//  NSObject+HDChatOBOManager.h
//  app
//
//  Created by D on 15/5/27.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HDChatOBOResult.h"
#import "HDMessageModel.h"
#import "HDChatOBOSendMessageResult.h"
#import "HDChatOBOSenImage.h"
#import "HDChatShopResutl.h"
#import "HDChatRangeResult.h"

@interface  HDChatOBOManager : NSObject

+(HDChatOBOManager*)shareManager;
//拉取聊天数据
-(void)loadChatContentData:(HDChatOBOResult *)result People:(NSString*)fuid SendMsgTime:(NSString*)sendMsgTime OwnerAddId:(NSString*)ownerAddId;
//发送聊天内容（文字图片）
-(void)sendChatContent:(HDChatOBOSendMessageResult *)result People:(NSString*)fuid Params:(NSDictionary*)params Refresh:(NSString*)refresh sendMsgTime:(NSString*)sendMsgTime Index:(NSString*)index OwnerAddId:(NSString*)ownerAddId;
//上传发送的图片
-(void)sendChatImage:(HDChatOBOSenImage*)result Params:(NSDictionary*)params ImageData:(NSData*)data sengMsgTime:(NSString*)sendMsgTime Index:(NSString*)index People:(NSString*)fuid OwnerAddId:(NSString*)ownerAddid;
//发送商品信息
-(void)sendShopContent:(HDChatShopResutl *)result People:(NSString*)fuid Params:(NSDictionary*)params;
//拉取遗失数据
-(void)loadLoseChatData:(HDChatRangeResult*)result People:(NSString*)fuid Params:(NSDictionary*)params OwnerAddId:(NSString*)ownerAddId;


-(NSMutableArray*)arrayFromFmdbWithPmid:(NSString*)pmid;
-(BOOL)fmdbIncludeChatPeople:(NSString*)fuid;
-(BOOL)fmdbInculdeContentDataWithPeople:(NSString *)fuid;
- (void)createFmdbWithPmid:(NSString*)pmid;
-(void)saveDatetoDBWithPeople:(NSString*)fuid Array:(NSArray*)array ListDic:(NSDictionary*)listDic;
-(void)deleteDataToDb:(NSString*)fuid WithTime:(NSString*)MsgTime;
-(NSMutableArray*)arrayFromContentToPicture:(NSString*)pmid;
@end
